﻿using Common.CustAttributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZXIMEW.Models.DModels
{
    /// <summary>
    /// 参数设置信息
    /// </summary>
    [Table("ModbusParaSetInfos")]
    [PrimaryKey("ParaId",autoIncrement =true)]
    public class ModbusParaSetInfo
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int ParaId { get; set; }
        /// <summary>
        /// 参数名
        /// </summary>
        public string ParaName { get; set; }
        /// <summary>
        /// 小数位数
        /// </summary>
        public int DecimalPlaces { get; set; }
        /// <summary>
        /// 从站地址
        /// </summary>
        public int SlaveAddress { get; set; }
        /// <summary>
        /// 存储地址
        /// </summary>
        public int Address { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType { get; set; }
        /// <summary>
        /// 存储功能码
        /// </summary>
        public string StoreFunction { get; set; }
        /// <summary>
        /// 参数描述
        /// </summary>
        public string Note { get; set; }
        /// <summary>
        /// 是否预警
        /// </summary>
        public bool IsAlarm { get; set; }
        /// <summary>
        /// 是否参与报表
        /// </summary>
        public bool IsReport { get; set; }
        /// <summary>
        /// 是否已删除
        /// </summary>
        public int IsDeleted { get; set; }
    }
}
